home *** CD-ROM | disk | FTP | other *** search
/ Ultimedia 1 / Ultimedia 1.iso / tools / sonstiges / easysound / example1.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-05  |  729 b   |  31 lines

  1. /*
  2.  * Example 1 - Play the included sound
  3.  *
  4.  * Compile: dcc -f -v -// -3.0 -leasysound
  5.  */
  6.  
  7. #include <exec/types.h>
  8. #include "easysound.h"
  9. #include "whiff.h"
  10.  
  11. main() {
  12.  
  13.     PlayIff(&whiff,           // The sound data
  14.             64,               // Max Volume
  15.             L0,               // Play Sound on the left channel
  16.             -35,              // Priority
  17.             0,                // Play at original rate
  18.             1,                // Play the sound 1 time
  19.             0,                // Play this sample from the beginning
  20.             0,                // Play the whole sample
  21.             1,                // Wait 'til the sample if played
  22.             );
  23.  
  24.     StopIff(L0);    // Stop Sound on L0
  25.  
  26. }
  27.  
  28.  
  29.  
  30.  
  31.